package test.spi;

import java.util.ServiceLoader;

public class App {

	public static void main(String[] args) {
		ServiceLoader<UserDao> UserDaoLoader = ServiceLoader.load(UserDao.class);
		for(UserDao item : UserDaoLoader){
		    item.insert(new User("zhangsan", 10));
		}
	}
	
}
